TResult
The return type of the column value.
Platform Core .NET Assemblies API
ExecuteScalar<TResult>(DBExecutor) Method
See Also  Send Feedback
Terrasoft.Core.DB Namespace > Select Class > ExecuteScalar Method : ExecuteScalar<TResult>(DBExecutor) Method
dbExecutor
The DBExecutor instance used to query the database.

Glossary Item Box

Executes the current select query and returns the typed first column of the first record of the resulting set, using the passed-in DBExecutor instance.

Syntax

 
C#
 
 

Parameters

dbExecutor
The DBExecutor instance used to query the database.

Type Parameters

TResult
The return type of the column value.

Return Value

The first column of the first record in the resulting dataset of the TResult type.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.